package org.dregs.repository;

import org.dregs.exception.ParamIsNullException;
import org.dregs.pojo.FileType;
import org.dregs.pojo.Version;

import java.util.List;

public interface IndexMapper {

    List<Version> queryAllVersion();

    List<FileType> queryAllFileType();

    Version queryByMD5(String md5);

    Version queryCurrentUse(String file_id);

    int insertFileType(FileType file_type) throws ParamIsNullException;

    int insertVersion(Version version) throws ParamIsNullException;

    int updateFileType(FileType file_type) throws ParamIsNullException;

    int updateVersion(Version version) throws ParamIsNullException;

    int deleteFileType(FileType file_type) throws ParamIsNullException;

    int deleteVersion(Version version) throws ParamIsNullException;

    int deleteFileTypeByID(long file_type_id) throws ParamIsNullException;;

    int deleteVersionByID(long version_id) throws ParamIsNullException;;



}
